Name:		xxhash
Version:	0.8.1
Release:	1%{?dist}
Summary:	fast non-crypto hash algorithm

License:	BSD
URL:		https://github.com/Cyan4973/xxHash
Source0:	https://github.com/Cyan4973/xxHash/archive/refs/tags/v0.8.1.tar.gz

%description
xxHash is an Extremely fast Hash algorithm, running at RAM speed limits.
It successfully completes the SMHasher test suite which evaluates collision,
dispersion and randomness qualities of hash functions. Code is highly
portable, and hashes are identical across all platforms (little / big endian).

%prep
%setup -q -n xxHash-%{version}

%build
make PREFIX=%{_prefix} LIBDIR=%{_libdir} %{?_smp_mflags}

%install
make PREFIX=%{_prefix} LIBDIR=%{_libdir} DESTDIR=%{buildroot} install

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%files
%license LICENSE
%{_bindir}/xxh*
%{_libdir}/libxxhash.*
%{_libdir}/pkgconfig/libxxhash.pc
%{_mandir}/man1/xxh*
%{_includedir}/xxhash.h
%{_includedir}/xxh3.h

%changelog

